package com.amithkoujalgi.framework.rest.util;


import org.apache.commons.codec.binary.Base64;

public class Base64Util
{
	public static synchronized String decode( String encoded )
	{
		return new String( Base64.decodeBase64( encoded.getBytes() ) );
	}

	public static synchronized String encode( String str )
	{
		return new String( Base64.encodeBase64( str.getBytes() ) );
	}
}
